package com.ssm.service.impl;

import com.ssm.pojo.AppInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssm.repository.AppInfoMapper;
import com.ssm.service.AppInfoServiceDao;

import java.util.List;

@Service
public class AppInfoServiceImpl  implements AppInfoServiceDao {

	@Autowired
	private AppInfoMapper AppInfoMapper;



	@Override
	public List<AppInfo> selectBySTCType(String softwareName, int status, int flatformId, int categoryLevel1, int categoryLevel2, int categoryLevel3) {
		return AppInfoMapper.selectBySTCType(softwareName,status,flatformId,categoryLevel1,categoryLevel2,categoryLevel3);
	}

	@Override
	public List<AppInfo> selectBySHType(String softwareName, int flatformId, int categoryLevel1, int categoryLevel2, int categoryLevel3) {
		return AppInfoMapper.selectBySHType(softwareName,flatformId,categoryLevel1,categoryLevel2,categoryLevel3);
	}

	@Override
	public AppInfo selectOneById(int id) {
		return AppInfoMapper.selectOneById(id);
	}

	@Override
	public int updateBySId(int status, int id) {
		return AppInfoMapper.updateBySId(status,id);
	}

	@Override
	public int delById(int id) {
		return AppInfoMapper.delById(id);
	}

	@Override
	public AppInfo selectByAName(String apkName) {
		return AppInfoMapper.selectByAName(apkName);
	}

	@Override
	public int insertAInfo(AppInfo appInfo) {
		return AppInfoMapper.insertAInfo(appInfo);
	}

	@Override
	public int updateAInfo(AppInfo appInfo) {
		return AppInfoMapper.updateAInfo(appInfo);
	}

    @Override
    public int updateVIDByAID(int id) {
        return AppInfoMapper.updateVIDByAID(id);
    }
}
